package com.fg.pro.model.trade.dto;

import lombok.Data;

import java.util.List;

@Data
public class GmUnitDto {

    @Data
    public class GmUnitRequest {

        public Page paging;

        public GmUnitRequest gmUnitRequest(int limit) {
            Page page = new Page();
            page.setLimit(limit);
            GmUnitRequest gmUnitRequest = new GmUnitRequest();
            gmUnitRequest.setPaging(page);
            return gmUnitRequest;
        }

        @Data
        public class Page {
            public int limit;
        }
    }

    @Data
    public class GmUnitReponse {
        public List<UnitData> units;

        @Data
        public class UnitData{
            public Long unit_id;
            public Long create_time;
            public Long update_time;
            public Long group_id;
            public Long parent_id;
            public String name;
            public String rate;
            public Integer type;
        }
    }
}
